﻿using GraphProcessor;
using IQIGame.Onigao.Logic;
using UnityEngine;

namespace IQIGame.Onigao.GamePlay.Editors
{
    [System.Serializable, NodeMenuItem(SkillEditorConst.SkillEffective + "/" + SkillEditorConst.ExtraDamage, typeof(SkillEditorGraph))]
    public class SkillEffectiveNode_ExtraDamage : SkillEffectiveNode
    {
        protected override ESkillEffectiveType effectType => ESkillEffectiveType.ExtraDamage;

        [InspectorName("伤害公式")] public int damageFormula;
        [InspectorName("检测死亡")] public bool checkDead;
        protected override SkillCustomConfig CreateConfig()
        {
            var rConfig = new SkillEffective_ExtraDamage_ConfigData()
            {
                damageFormula = this.damageFormula,
                checkDead = this.checkDead
            };
            return rConfig;
        }
    }
}